package com.pzl.service.impl;

import com.pzl.domain.User;
import com.pzl.mapper.UserMapper;
import com.pzl.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * UserServiceImpl class
 *
 * @Author panzhenglei
 * @Date 2019/6/13 7:20 PM
 */

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {

        List<User> users = userMapper.findAll();
        return users;
    }
}
